﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

#endregion

namespace ScrumTable.DL.Data.TFS.Bulk.Services
{
    /// <summary>
    /// Specifies the load token which is used for loading the data
    /// in an async manner.
    /// </summary>
    /// <typeparam name="TRef">Specifies the reference type which is used to load the async items.</typeparam>
    /// <typeparam name="TResult">Specifies the result type.</typeparam>
    internal class ElementDataLoadToken<TRef, TResult> // there's one token for a thread
    {
        /// <summary>
        /// Gets the id of the work item to load.
        /// </summary>
        internal TRef Reference { get; private set; }

        /// <summary>
        /// Specifies the output (result) work item.
        /// </summary>
        internal TResult Result { get; set; }

        internal ElementDataLoadToken(TRef elementRef)
        {
            Reference = elementRef;
        }
    }
}